Creating the model no longer fails
authorBenjamin Otte <otte@gnome.org>
Wed, 1 Jul 2009 07:48:32 +0000 (09:48 +0200)
committerBenjamin Otte <otte@gnome.org>
Thu, 15 Oct 2009 20:00:07 +0000 (22:00 +0200)
So remove the code that checked for failure, as it's not needed anymore.

gtk/gtkfilechooserdefault.c

index 24f42f7f97ccb81f4d0f12544be9540e5b1f4a65..f31c46f06c9a229b55cac9fab39c146204509845 100644 (file)
@@ -6951,13 +6951,6 @@ set_list_model (GtkFileChooserDefault *impl,
         G_TYPE_FILE_INFO,
         G_TYPE_STRING);
 
-  if (!impl->browse_files_model)
-    {
-      set_busy_cursor (impl, FALSE);
-      profile_end ("end", NULL);
-      return FALSE;
-    }
-
   load_setup_timer (impl); /* This changes the state to LOAD_PRELOAD */
 
   g_signal_connect (impl->browse_files_model, "finished-loading",